/**
 * coordin.h -- structure templates and function prototypes
 * structure templates
 *
 * 2019年 10月 02日 星期三 14:42:39 CST
 */
#ifndef COORDIN_H_
#define COORDIN_H_

struct Polar
{
    double distance;    // distance from origin
    double angle;        // direction from origin
};

struct Rect
{
    double x;        // horizontal distance from origin
    double y;        // vertical distance from origin
};

// prototypes
Polar rect_to_polar(Rect xypos);

void show_polar(Polar dapos);

#endif

